package com.bole.data;

public enum ResultEnum {
    OK(200, "ok"), FAIL(500, "fail"), UNATUTH(401, "Unauthorized");

    private Integer code;
    private String value;

    ResultEnum(Integer code, String value) {
        this.code = code;
        this.value = value;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static void main(String[] args) {
        ResultEnum resultEnum = ResultEnum.OK;
        System.out.println(resultEnum.getCode());
        System.out.println(resultEnum.getValue());
    }
}